/**
 * Created by zhangJi on 2017/7/17.
 */
import {Injectable} from "@angular/core";
import {services} from "../../providers/service";
import {interfaceUrls} from "../../providers/serverUrls";
@Injectable()
export class LoginService extends services {

    login(param) {

        return this.postMethod(interfaceUrls.login, param)
            .then(data => {
                return data;
            }, err => {
                console.log('失败回调');
                return err;
            })
            .catch(fail => {
                console.log('异常了', fail);
            });
    }
}